def ojld(x,y):
    flag = 1
    while flag != 0:
        flag = x%y
        x=y
        y=flag
    return x
print(ojld(615,1997))
        
